//
//  SettingArrowCellModel.swift
//  DoShare
//
//  Created by 1 on 2018/5/3.
//  Copyright © 2018年 eetrust. All rights reserved.
//

import UIKit

class SettingArrowCellModel: BaseSettingCellModel {
    
    /// 图标
    var iconImageName: String?
    /// 子标题图片
    var detailImageName: String?
    /// 是否显示小箭头
    var isShowArrow: Bool = true
    /// 子标题
    var detailTitle: String?
    /// 子标题颜色
    var detailTitleColor: UIColor?
    /// 颜色
    var color: UIColor?
    
    /// 构造方法
    /// - Parameters:
    ///   - attrTitle: 富文本title
    ///   - tagStr: 标记，用于区分事件
    ///   - isShowArrow: 是否显示箭头
    convenience init(attrTitle: NSMutableAttributedString, tag: String, isShowArrow: Bool = true) {
        self.init(title: "", tag: tag)
        
        self.attrTitle = attrTitle
    }

    /// 构造方法
    ///
    /// - Parameters:
    ///   - title: 标题
    ///   - detailTitle: 详细标题
    ///   - detailImageName: 详细图片
    ///   - tagStr: 标记，用于区分事件
    convenience init(title: String,
                     detailTitle: String?,
                     detailImageName: String? = nil,
                     color: UIColor? = nil,
                     tag: String,
                     isShowArrow: Bool = true) {
        self.init(title: title, tag: tag)
        
        self.color = color
        self.detailTitle = detailTitle
        self.detailImageName = detailImageName
        self.isShowArrow = isShowArrow
    }
    
    /// 构造方法
    ///
    /// - Parameters:
    ///   - iconImageName: 图标
    ///   - title: 标题
    ///   - tagStr: 标记，用于区分事件
    convenience init(iconImageName: String?, title: String, tag: String) {
        self.init(title: title, tag: tag)
        
        self.iconImageName = iconImageName
    }
    
    /// 构造方法
    /// - Parameter iconImageName: 图标
    /// - Parameter title: 标题
    /// - Parameter detailTitle: 详细标题
    /// - Parameter detailImageName: 详细图片
    /// - Parameter detailTitleColor: 详细标题颜色
    /// - Parameter tagStr: 标记，用于区分事件
    convenience init(iconImageName: String?, title: String, detailTitle: String?, detailImageName: String?, detailTitleColor: UIColor? = nil, tag: String) {
        self.init(title: title, tag: tag)
        
        self.iconImageName = iconImageName
        self.detailTitle = detailTitle
        self.detailImageName = detailImageName
        self.detailTitleColor = detailTitleColor
    }

}
